from properties import Properties

class Revision(object):
	def __init__(self):
		self.__nodes = list()
		self.__number = None
		self.__properties = Properties()
	
	def __get_nodes(self):
		return self.__nodes
	
	def __get_number(self):
		return self.__number
	
	def __get_properties(self):
		return self.__properties
	
	def __set_number(self, number):
		self.__number = number
	
	nodes = property(__get_nodes)
	number = property(__get_number, __set_number)
	properties = property(__get_properties)

if __name__ == "__main__":
	revision = Revision()
	revision.number = 5
	assert revision.number == 5
	revision.number = 6
	assert revision.number == 6
	assert "svn::author" not in revision.properties
